home *** CD-ROM | disk | FTP | other *** search
- G4C
- ; $VER: HTMLLIB Rev.032 by Juan Manuel Wehrli 1999 - 2000
- WinBig -1 -1 640 445 "HTMLEXT: Bibliothek"
- WinType 11110000
- WinBackground IMAGE BG 0
- Winout "NIL:"
-
- xOnLoad
- CLI 'LIST HTMLEXT:data/htmllib/ LFORMAT="%N" >t:htmlext/lib.list'
- LVUSE #This 1
- LVChange "t:htmlext/lib.list"
- LVSort ASC
- LVDel -1
- LVUse #This 3
- LVClear
- GuiOpen #This
-
- xOnClose
- GuiQuit #This
-
- xMenu "Projekt" "Importieren" "" ""
- CLI 'lha -T x ram:HTMLEXT_lib.lha HTMLEXT: >CON:0/0/550/50/Lha/CLOSE/PUBSCREEN$*SCREEN'
-
- xMenu "Projekt" "Exportieren" "" ""
- CLI 'lha -A -r u ram:HTMLEXT_lib.lha HTMLEXT:data/htmllib >CON:0/0/550/50/Lha/CLOSE/PUBSCREEN$*SCREEN'
-
- xMenu "Projekt" "Synchronisieren" "" ""
- ifexists FILE "ram:HTMLEXT_lib.lha"
- CLI 'lha -T x ram:HTMLEXT_lib.lha HTMLEXT: >CON:0/0/550/50/Lha/CLOSE/PUBSCREEN$*SCREEN'
- CLI 'lha -r u ram:HTMLEXT_lib.lha HTMLEXT:data/htmllib >CON:0/0/550/50/Lha/CLOSE/PUBSCREEN$*SCREEN'
- EZReq "Soll das Update nun verschickt werden?" "Ja|Nein" ezupd
- if $ezupd = 1
- lvuse HTMLEXT 1
- if $%SiteMail = ""
- SetVar mailadr "Keine Angabe"
- else
- EXTRACT %SiteMail CLEAN mailadr
- endif
- SetVar .HTMLEXT.emad $mailadr
- SetVar .HTMLEXT.subj "HTMLEXT Library Update"
- CLI 'setenv .HTMLEXT.user $*USER'
- CLI 'rx $*MAILER LIBUPDATE "ram:HTMLEXT_lib.lha"'
- endif
- else
- CLI 'lha -r a ram:HTMLEXT_lib.lha HTMLEXT:data/htmllib >CON:0/0/550/50/Lha/CLOSE/PUBSCREEN$*SCREEN'
- EZReq "Soll das Update nun verschickt werden?" "Ja|Nein" ezupd
- if $ezupd = 1
- lvuse HTMLEXT 1
- if $%SiteMail = ""
- SetVar mailadr "Keine Angaben"
- else
- EXTRACT %SiteMail CLEAN mailadr
- endif
- SetVar .HTMLEXT.emad $mailadr
- SetVar .HTMLEXT.subj "HTMLEXT Library Update"
- CLI 'setenv .HTMLEXT.user $*USER'
- CLI 'rx $*MAILER LIBUPDATE "ram:HTMLEXT_lib.lha"'
- endif
- endif
-
- xMenu "Projekt" "Beenden" "" ""
- GuiQuit #This
-
- xMenu "Kategorie" "Import" "" ""
- Reqfile -1 -1 200 500 "Bitte Import Verzeichnis auswählen" DIR "impdir" "ram:"
- Reqfile -1 -1 200 500 "Bitte Destination auswählen" DIR "destdir" "HTMLEXT:data/htmllib/"
- FailAt 21
- CLI 'copy $impdir to $destdir ALL >CON:0/0/550/50/Kopiere/CLOSE/PUBSCREEN$*SCREEN'
-
- xMenu "Kategorie" "Import LhA" "" ""
- Reqfile -1 -1 200 500 "Bitte Import Datei wählen" FILE "impfile" "ram:"
- CLI 'lha x $impfile HTMLEXT: >CON:0/0/550/50/Lha/CLOSE/PUBSCREEN$*SCREEN'
-
- xMenu "Kategorie" "Export" "" ""
- SetVar VORS "HTMLEXT:data/htmllib/"
- AppVar VORS "$LVP"
- Reqfile -1 -1 200 500 "Bitte Destination auswählen" DIR "dest" "ram:"
- SetVar destdir $dest
- AppVar destdir $LVP
- CLI 'makedir $destdir'
- FailAt 21
- CLI 'copy $VORS TO $destdir >CON:0/0/550/50/Kopiere/CLOSE/PUBSCREEN$*SCREEN'
-
- xMenu "Kategorie" "Export LhA" "" ""
- SetVar dir "HTMLEXT:data/htmllib/"
- AppVar dir $LVP
- SetVar name "ram:"
- AppVar name $LVP
- AppVar name "_lib.lha"
- CLI 'Lha -r a $name $dir >CON:0/0/550/50/Lha/CLOSE/PUBSCREEN$*SCREEN'
-
- ;Projekte Teil
- xLISTVIEW 450 25 185 180 "" "LVP" "t:htmlext/lib.list" 0 "SHOW"
- GadID 1
- GadFont xHelvetica.font 11 000
- CLI 'LIST HTMLEXT:data/htmllib/$LVP LFORMAT="%N" >t:htmlext/lib.tags'
- LVUSE #This 3
- LVChange "t:htmlext/lib.tags"
- LVSort ASC
- LVDel -1
-
- xButton 450 5 15 18 "+"
- GadFont xHelvetica.font 11 000
- GadHelp "Neue Kategorie hinzufügen ..."
- SetVar .htmlext.rqt "Neue Kategorie" ;Titel
- SetVar .htmlext.rqb "Bitte Kategorienamen eingeben:" ;Body
- SetVar .htmlext.rqd "Neu" ;Default
- SetVar .htmlext.rqu "Weiter|Abbrechen" ;Buttons
- cli 'rx htmlext:mod/htmlext.smod REQSTRING'
- if $.htmlext.res = 1
- LVUSE #This 1
- string = $.htmlext.tmp
- LVADD $.htmlext.tmp
- LVSort ASC
- Update #This 4 ""
- SetVar TMP "HTMLEXT:data/htmllib/"
- AppVar TMP "$string"
- CLI 'makedir $TMP'
- SetGad #This 4 HIDE
- endif
-
- xButton 465 5 15 18 "-"
- GadFont xHelvetica.font 11 000
- GadHelp "Kategorie löschen ..."
- EZREQ "Achtung: Es werden alle Daten der aktuellen Kategorie gelöscht!" "Weiter|Abbrechen" EZVAR
- if $EZVAR = "1"
- SetVar TMP "HTMLEXT:data/htmllib/"
- AppVar TMP "$LVP"
- FailAt 21
- CLI 'delete $TMP ALL NOREQ'
- LVUSE #This 1
- LVDEL -1
- endif
-
- xButton 480 5 15 18 "R"
- GadFont xHelvetica.font 11 000
- GadHelp "Kategorie umbennen ..."
- lvuse #This 1
- SetVar .htmlext.rqt "Kategorie umbennen" ;Titel
- SetVar .htmlext.rqb "Bitte geben Sie der Kategorie den gewünschten Namen" ;Body
- SetVar .htmlext.rqd "$$lv.rec" ;Default
- SetVar .htmlext.rqu "Weiter|Abbrechen" ;Buttons
- cli 'rx htmlext:mod/htmlext.smod REQSTRING'
- if $.htmlext.res = 1
- SetVar oname "htmlext:data/htmllib/"
- AppVar oname $$lv.rec
- SetVar nname "htmlext:data/htmllib/"
- AppVar nname $.htmlext.tmp
- cli 'rename $oname $nname'
- CLI 'LIST HTMLEXT:data/htmllib/ LFORMAT="%N" >t:htmlext/lib.list'
- LVChange "t:htmlext/lib.list"
- LVSort ASC
- LVDel -1
- endif
-
- ; TAG Teil
- xLISTVIEW 450 235 185 180 "" "LVT" "t:htmlext/lib.list" 0 "SHOW"
- GadID 3
- GadFont xHelvetica.font 11 000
- UPDATE #This 4 $LVT
- STRT = $LVT
- SetVar ALVDATA "HTMLEXT:data/htmllib/$LVP"
- AppVar ALVDATA "/$LVT"
- LVUSE #This 5
- LVChange "$ALVDATA"
- if $aprev = "1"
- SetVar VORS "HTMLEXT:data/htmllib/"
- AppVar VORS "$LVP"
- AppVar VORS "/"
- AppVar VORS "$LVT"
- IfExists FILE $VORS
- FailAt 21
- CLI 'rx $*BROWSER OPEN $VORS'
- endif
- endif
-
- xButton 450 215 15 18 "+"
- GadFont xHelvetica.font 11 000
- GadHelp "Neuer TAG Eintrag erzeugen ..."
- SetVar .htmlext.rqt "Neuer Tag Eintrag" ;Titel
- SetVar .htmlext.rqb "Bitte Namen des neu zu erzeugenden Tag-Eintrages eingeben:" ;Body
- SetVar .htmlext.rqd "Neu" ;Default
- SetVar .htmlext.rqu "Weiter|Abbrechen" ;Buttons
- cli 'rx htmlext:mod/htmlext.smod REQSTRING'
- if $.htmlext.res = 1
- SetVar TMP "HTMLEXT:data/htmllib/"
- AppVar TMP "$LVP"
- AppVar TMP "/"
- AppVar TMP $.htmlext.tmp
- FailAt 21
- CLI 'copy HTMLEXT:settings/defaults/Libtag.txt to $TMP'
- SetVar Befehl "rx "
- AppVar Befehl $*EDITOR
- AppVar Befehl " OPENNEW "
- AppVar Befehl $TMP
- CLI '$Befehl'
- CLI 'LIST HTMLEXT:data/htmllib/$LVP LFORMAT="%N" >t:htmlext/lib.tags'
- LVUSE #This 3
- LVChange "t:htmlext/lib.tags"
- LVSort ASC
- LVDel -1
- endif
-
- xButton 465 215 15 18 "-"
- GadFont xHelvetica.font 11 000
- GadHelp "Aktiver TAG Eintrag löschen ... Achtung: Keine Abfrage!"
- LVUSE #This 3
- SetVar TMP "HTMLEXT:data/htmllib/"
- AppVar TMP $LVP
- AppVar TMP "/"
- AppVar TMP $LVT
- FailAt 21
- CLI 'delete $TMP FORCE'
- lvdel -1
-
- xButton 480 215 15 18 "R"
- GadFont xHelvetica.font 11 000
- GadHelp "TAG Eintrag umbennen ..."
- lvuse #This 3
- SetVar .htmlext.rqt "TAG Eintrag umbennen" ;Titel
- SetVar .htmlext.rqb "Bitte geben Sie dem TAG Eintrag den gewünschten Namen" ;Body
- SetVar .htmlext.rqd "$$lv.rec" ;Default
- SetVar .htmlext.rqu "Weiter|Abbrechen" ;Buttons
- cli 'rx htmlext:mod/htmlext.smod REQSTRING'
- if $.htmlext.res = 1
- SetVar oname "htmlext:data/htmllib/"
- lvuse #This 1
- AppVar oname $$lv.rec
- lvuse #This 3
- AppVar oname "/"
- AppVar oname $$lv.rec
- SetVar nname "htmlext:data/htmllib/"
- lvuse #This 1
- AppVar nname $$lv.rec
- lvuse #This 3
- AppVar nname "/"
- AppVar nname $.htmlext.tmp
- cli 'rename $oname $nname'
- CLI 'LIST HTMLEXT:data/htmllib/$LVP LFORMAT="%N" >t:htmlext/lib.tags'
- LVUSE #This 3
- LVChange "t:htmlext/lib.tags"
- LVSort ASC
- LVDel -1
- endif
-
- xButton 495 215 55 18 "N.v.Mark"
- GadFont xHelvetica.font 11 000
- GadHelp "Erzeugt neuen Eintrag vom selektiertem Abschnitt im Editor"
- SetVar .htmlext.rqt "Tag Name:" ;Titel
- SetVar .htmlext.rqb "Bitte geben Sie den gewünschen TAG Namen ein ..." ;Body
- SetVar .htmlext.rqd "Neu" ;Default
- SetVar .htmlext.rqu "Weiter|Abbrechen" ;Buttons
- cli 'rx htmlext:mod/htmlext.smod REQSTRING'
- if $.htmlext.res = 1
- SetVar TMP "HTMLEXT:data/htmllib/"
- AppVar TMP "$LVP"
- AppVar TMP "/"
- AppVar TMP "$.htmlext.tmp"
- cli 'rx $*EDITOR BLOCKSAVE $TMP'
- CLI 'LIST HTMLEXT:data/htmllib/$LVP LFORMAT="%N" >t:htmlext/lib.tags'
- LVUSE #This 3
- LVChange "t:htmlext/lib.tags"
- LVSort ASC
- LVDel -1
- endif
-
- ; DATA Teil
- xLISTVIEW 5 25 440 390 "" "LIBD" "HTMLEXT:data/htmllib/hilfe/Einleitung" 10 "MULTI"
- GadID 5
- GadFont xCourier.font 11 000
-
- xButton 5 5 70 18 "Alles"
- GadFont xHelvetica.font 11 000
- lvuse #This 5
- LVMulti All
-
- xButton 75 5 70 18 "Nichts"
- GadFont xHelvetica.font 11 000
- lvuse #This 5
- LVMulti None
-
- xButton 145 5 70 18 "Bearbeiten"
- GadFont xHelvetica.font 11 000
- SetVar BEARB "HTMLEXT:data/htmllib/"
- AppVar BEARB "$LVP"
- AppVar BEARB "/"
- AppVar BEARB "$LVT"
- IfExists FILE $BEARB
- CLI '$*EDITOR OPENNEW "$BEARB"'
- else
- FailAt 21
- COPY "HTMLEXT:settings/defaults/Libtag.txt" "$BEARB"
- CLI '$*EDITOR OPENNEW "$BEARB"'
- endif
-
- xButton 355 5 70 18 "_Vorschau"
- GadFont xHelvetica.font 11 000
- GadKey "v"
- SetVar VORS "HTMLEXT:data/htmllib/"
- AppVar VORS "$LVP"
- AppVar VORS "/"
- AppVar VORS "$LVT"
- IfExists FILE $VORS
- FailAt 21
- CLI 'rx $*BROWSER OPEN $VORS'
- endif
-
- xCheckBox 425 5 20 18 "" aprev "1" "2" OFF
- GadHelp "Automaitsche Vorschau aktivieren."
-
-
-
-
- ;Untere Buttons
- xButton 5 420 100 18 "Datei erzeugen"
- GadFont xHelvetica.font 11 000
- GadHelp "Neue Datei erzeugen"
- SetVar BEARB "HTMLEXT:data/htmllib/"
- AppVar BEARB "$LVP"
- AppVar BEARB "/"
- AppVar BEARB "$LVT"
- LVUSE HTMLEXT 3
- SetVar nfile "$$LV.DIR"
- AppVar nfile ".htm"
- SetVar .htmlext.rqt "Datei erzeugen" ;Titel
- SetVar .htmlext.rqb "Bitte Dateinamen eingeben ..." ;Body
- SetVar .htmlext.rqd "$nfile" ;Default
- SetVar .htmlext.rqu "Erzeugen|Abbrechen" ;Buttons
- cli 'rx htmlext:mod/htmlext.smod REQSTRING'
- if $.htmlext.res = 1
- IfExists FILE $BEARB
- FailAt 21
- CLI 'copy "$BEARB" to $.htmlext.tmp'
- CLI 'rx $*BROWSER OPEN $.htmlext.tmp'
- endif
- LVUSE HTMLEXT 3
- LVDIR #$$LV.DIR
- endif
-
- xButton 105 420 100 18 "_Einfügen"
- GadFont xHelvetica.font 11 000
- GadKey "e"
- SetVar BEARB "HTMLEXT:data/htmllib/"
- AppVar BEARB "$LVP"
- AppVar BEARB "/"
- AppVar BEARB "$LVT"
- CLI '$*EDITOR INSERT "$BEARB"'
-
- xButton 205 420 100 18 "Markiertes einf."
- GadFont xHelvetica.font 11 000
- CLI 'echo "" >t:htmlext/temp.txt'
- LVUSE #This 5
- LVMulti First
- while $$lv.line > ""
- cli 'echo "$$lv.rec" >>t:htmlext/temp.txt'
- LVMulti OFF
- LVMulti Show
- LVMulti First
- EndWhile
- CLI '$*EDITOR INSERT "t:htmlext/temp.txt"'
- cli 'delete t:htmlext/temp.txt'
- Update "infobar" 1 "Fertig!"
-
- xButton 305 420 100 18 "Tag einfügen"
- GadFont xHelvetica.font 11 000
- LVMulti First
- while $$lv.line > ""
- CLI '$*EDITOR PASTE $$lv.rec'
- LVMulti OFF
- LVMulti Show
- LVMulti First
- EndWhile
-
-
- ; Globaler Teil
- xButton 535 420 100 18 "[_X] Schliessen"
- GadKey "x"
- GadFont xHelvetica.font 11 010
- GuiQuit #This
-
-
-